﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Centrale_Achat/CentraleAchat.Master" AutoEventWireup="true" CodeBehind="CommandesHypermarches.aspx.cs" Inherits="DevelopmentPFR.Centrale_Achat.CommandesHypermarches" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Contenu" runat="server">
    <div class="row">
        <div class="col-md-offset-4">
            <div class="col-md-5">
                <input type="button" value="RAFRAICHIR" />
                <asp:Button ID="genererCommande" CssClass="btn btn-default" runat="server" Text="Générer commande" OnClick="genererCommandeInterne_Click"/>
            </div>
        </div>
    </div>
    
    <div class="row">
        <asp:GridView
            runat="server"
            ID="ListeCommande"
            CssClass="table table-bordered table-responsive"
            AlternatingRowStyle-BackColor="#D7D7D7"
            HeaderStyle-BackColor="#B0C1D0"
            OnRowDataBound="CheckCommmandeOldDate"
            AutoGenerateColumns="False">
            <Columns>                
                <asp:TemplateField HeaderText="Réference">
                    <ItemTemplate>
                        <asp:HyperLink ID="linkToDetail" runat="server" NavigateUrl="" Text='<%# Eval("Reference") %>'></asp:HyperLink>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="DateCommande" HeaderText="Date commande" />
                <asp:BoundField DataField="Statut" HeaderText="Statut" />
                <asp:BoundField DataField="prixTotal" HeaderText="Prix HT Total" />
                <asp:BoundField DataField="nomHypermarche" HeaderText="Hypermarché" />
                <asp:TemplateField>
                    <ItemTemplate>
                        <asp:CheckBox ID="commandeCheck" runat="server" />
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
